// 模拟数据库 - 集中管理应用所有模拟数据
const db = {
  // 用户信息
  users: [
    {
      id: 1,
      username: '健身达人',
      age: 28,
      height: 175,
      gender: 'male',
      fitnessGoal: 'lose_weight',
      calorieGoal: 2000,
      weeklyWorkoutGoal: 4
    }
  ],

  // 训练计划
  workoutPlans: [
    {
      id: 1,
      title: '全身塑形计划',
      duration: '45分钟',
      difficulty: '中级',
      exercises: [
        { id: 1, name: '哑铃卧推', sets: 3, reps: 12, completed: false },
        { id: 2, name: '深蹲', sets: 4, reps: 15, completed: false },
        { id: 3, name: '引体向上', sets: 3, reps: 8, completed: false }
      ],
      day: 'monday'
    },
    {
      id: 2,
      title: '核心强化计划',
      duration: '30分钟',
      difficulty: '初级',
      exercises: [
        { id: 4, name: '平板支撑', sets: 3, duration: '60秒', completed: false },
        { id: 5, name: '仰卧卷腹', sets: 3, reps: 20, completed: false }
      ],
      day: 'wednesday'
    }
  ],

  // 饮食记录
  nutritionLogs: [
    {
      id: 1,
      date: '2023-11-15',
      meals: [
        {
          id: 1,
          type: 'breakfast',
          foods: [
            { name: '全麦面包', calories: 150, protein: 5, carbs: 30, fat: 2 },
            { name: '鸡蛋', calories: 70, protein: 6, carbs: 0, fat: 5 }
          ]
        },
        {
          id: 2,
          type: 'lunch',
          foods: [
            { name: '鸡胸肉', calories: 165, protein: 31, carbs: 0, fat: 3.6 },
            { name: '糙米', calories: 112, protein: 2.6, carbs: 23.5, fat: 0.9 }
          ]
        }
      ]
    }
  ],

  // 身体数据
  bodyStats: [
    { id: 1, date: '2023-11-10', weight: 70, muscle: 30, fat: 15, notes: '开始新计划' },
    { id: 2, date: '2023-11-15', weight: 68.5, muscle: 30.5, fat: 14.8, notes: '训练效果明显' }
  ]
};

export default db;